# coding=utf-8

from socket import *
tcp_socket = socket(AF_INET,SOCK_DGRAM)
tcp_socket.setsockopt(SOL_SOCKET,SO_REUSEADDR,True)
ip_port = ('',8080)
tcp_socket.bind(ip_port)
tcp_socket.listen(128)
client_socket, client_addr = tcp_socket.accept()


recv_data = client_socket.recv(1024)
print(recv_data)
client_socket.close()
tcp_socket.close()
